From b9ce61033c2f5bc6ec8eb3db200b96058f013bf8 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 17 Nov 2025 12:06:56 +0900 Subject: (김준회) 오류 수정: params and searchParams: Nextjs 15부터 Promise 타입으로 변경됨: 서버 컴포넌트에서는 await으로 resolve 하도록 처리, Promise 타입 명시적으로 추가(Generic) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/[lng]/auth/reset-password/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/[lng]/auth/reset-password/page.tsx') diff --git a/app/[lng]/auth/reset-password/page.tsx b/app/[lng]/auth/reset-password/page.tsx index f49e5d86..1900f7b9 100644 --- a/app/[lng]/auth/reset-password/page.tsx +++ b/app/[lng]/auth/reset-password/page.tsx @@ -7,10 +7,11 @@ import ResetPasswordForm from '@/components/login/reset-password'; import { getPasswordPolicy } from '@/lib/users/auth/passwordUtil'; interface Props { - searchParams: { token?: string }; + searchParams: Promise<{ token?: string }>; } -export default async function ResetPasswordPage({ searchParams }: Props) { +export default async function ResetPasswordPage(props: Props) { + const searchParams = await props.searchParams; const token = searchParams.token; // 토큰이 없는 경우 로그인 페이지로 리다이렉트 -- cgit v1.2.3